<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>测试</title>
	<style type="text/css">
	* {
		padding: 0;
		margin: 0;
	}
    </style>
</head>
<body>
<!--

console.group()

console.groupEnd()

console.log('\n-----------------------\n')

console.group(pathLib.basename(__filename))

console.groupEnd()

-->
	<div class="container">
		<h1>测试</h1>
		<button id="btn1">点击</button>
	</div>
	<script src="https://cdn.staticfile.org/jquery/3.2.0/jquery.js"></script>
	<!-- <script src="./20210306/03-ArrayLast.js"></script> -->
	<script type="text/javascript">
 	
function aa(...args) {
	var result= [];
	
	for (var i = 0; i < args.length; i++) {
		if(Array.isArray(args[i])) {
			result = result.concat(aa(...args[i]))
		} else {
			result = result.concat(args[i])
		}
	}
	return result
}

var ret = aa([0, [1, ['a', ['c', 3], 'd']], 2])
console.log(ret)

	</script>
</body>
</html>